package service;

import model.Subject;

import java.util.List;

/**
 * @author wyt
 * @create 2022-12-17 14:44
 */
public interface SubjectService {
    List<Subject>findByPage(int page,int PageSize);

    List<Subject>findById(long sid,int page,int PageSize);
    List<Subject>findByName(String sname,int page,int PageSize);
//    Subject get(String id);
    Subject get(Long sid);
    int count();
    boolean insert(Subject subject);
    boolean delete(Long id_s,Long id_u);
    boolean update(Subject subject);
    int countByName(String sname);
    int countById(long sid);
}

